﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright company="JDML Consulting Ltd." file="Validator.cs">
//   Copyright 2011 Photon Project - http://photon.codeplex.com
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

// ReSharper disable CheckNamespace

namespace System.ComponentModel.DataAnnotations
{
    using System;
    using Collections.Generic;
    using Collections.ObjectModel;

    public static class Validator
    {
        public static bool TryValidateValue(object value, ValidationContext validationContext, Collection<ValidationResult> results, IEnumerable<ValidationAttribute> validationAttributes)
        {
            throw new NotImplementedException();
        }

        public static bool TryValidateObject(object value, ValidationContext validationContext, Collection<ValidationResult> results, bool validateProperties)
        {
            throw new NotImplementedException();
        }
    }

    public class DisplayAttribute : Attribute
    {
        public string Name { get; set; }

        public string GetDescription()
        {
            return Name;
        }

        public string GetName()
        {
            return Name;
        }
    }

    public class ValidationAttribute : Attribute
    {
    }

    public class ValidationContext
    {
        public ValidationContext(object instance, IServiceProvider serviceProvider, IDictionary<Object, Object> items)
        {
            
        }

        public string MemberName { get; set; }

        public string DisplayName { get; set; }
    }

    public class ValidationResult
    {
        public string ErrorMessage { get; set; }

        public IEnumerable<string> MemberNames { get; set; }
    }
}

// ReSharper restore CheckNamespace